package com.acme;

import com.acme.bankapp.domain.bank.Bank;
import com.acme.bankapp.service.bank.BankDataLoader;
import com.acme.bankapp.service.bank.BankService;

public class BankApplication {
	public static void main(String[] args) {
		BankService bankserv = new BankService();
		Bank bank=bankserv.loadBank(bankserv.getBankFilePath());
		if (bank!=null){
			System.out.println("Bank loaded");
		}
		else{
			System.out.println("Bank created");
			bank=new Bank();
		}

		BankDataLoader.load(bank, bankserv.getClientSavePath());
//		Client cl = new Client("Petrova", Gender.FEMALE, 45);
//		cl.addAcc(new CheckingAccount(AccountID.set(),2000,1478));
//		bankserv.addClient(bank, cl);
	}
}
